<ul>
<?php
for ($i=1 ; $i<=6 ; $i++)
{
	$reason  = get_option("mySetting_reason".$i);	
	if($reason)
	{
	?>
	<li><span>0<?php echo $i;?></span><a href="#"><?php echo $reason;?></a></li>
	<?php 	
	}
	unset($reason);
} 
?>     
</ul>